package com.kfm.system.service.impl;

import org.springframework.stereotype.Service;

import org.springframework.beans.factory.annotation.Autowired;

import com.kfm.system.mapper.DictTypeMapper;
import com.kfm.common.domain.entity.DictType;
import com.kfm.system.service.DictTypeService;
@Service
public class DictTypeServiceImpl implements DictTypeService{

    @Autowired
    private DictTypeMapper dictTypeMapper;

    @Override
    public int deleteByPrimaryKey(Integer typeId) {
        return dictTypeMapper.deleteByPrimaryKey(typeId);
    }

    @Override
    public int insert(DictType record) {
        return dictTypeMapper.insert(record);
    }

    @Override
    public int insertSelective(DictType record) {
        return dictTypeMapper.insertSelective(record);
    }

    @Override
    public DictType selectByPrimaryKey(Integer typeId) {
        return dictTypeMapper.selectByPrimaryKey(typeId);
    }

    @Override
    public int updateByPrimaryKeySelective(DictType record) {
        return dictTypeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(DictType record) {
        return dictTypeMapper.updateByPrimaryKey(record);
    }

}
